﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Tinkle
{
    public partial class Site : Controls.UserMasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Perfil == "")
                    MenuControl1.SiteMapProviderName = "WebXmlSiteMapProvider";
                else if (Perfil == "Aluno")
                    MenuControl1.SiteMapProviderName = "AlunoXmlSiteMapProvider";
                else
                    MenuControl1.SiteMapProviderName = "ProfessorXmlSiteMapProvider";
            }
        }
    }
}